<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>涛宝商城-订单支付</title>
		<link rel="stylesheet" type="text/css" th:href="@{appstyle/css/mdui.min.css}" />
<script th:src="@{appstyle/js/mdui.js}" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" th:src="@{appstyle/js/jquery-3.3.1.js}"></script>
<link rel="stylesheet" type="text/css" th:href="@{appstyle/css/core.css}" />
	</head>
	<style>
		body{
		min-width: 1080px;
		    background-color: #f6f6f6;
	}
		#header {
	height: 68px;
	border: 1px solid #66CCFF;
	background-color: #66CCFF;
}

.login {
	background-color: darkgray;
	padding-bottom: 5px;
	padding-top: 3px;
	background-color: #EEEEEE;
}

.login_1 {
	width: 1080px;
	position: relative;
	border: 1px solid #EEEEEE;
	margin: 0 auto;
}

.span1 {
	cursor: pointer;
	font-size: 12px;
	color: #999;
	text-decoration: none;
}

.ul1 {
	overflow: hidden;
}

.span {
	position: absolute;
	left: 0;
}

.span1:hover {
	color: #66CCFF;
}

li {
	list-style: none;
}

.li1 {
	float: left;
	/*display: flex;*/
	/*justify-content: center;*/
	position: relative;
	left: 74%;
	margin-left: 15px;
}

a {
	font-size: 12px;
	color: #999;
}

.a1 {
	text-decoration: none;
}

.a1:hover {
	color: red;
}

.p1 {
	text-align: center;
	margin-top: 20px;
	color: white;
	font-size: 20px;
	font-weight: bold;
}

#body {
	width: 1080px;
	height: 111px;
	margin: 0 auto;
	position: relative;
}
*{
	margin: 0;
	padding: 0;
}
.logo {	
	width: 150px;
	font-size: 35px;
	font-weight: bold;
	display: block;
	color: #66CCFF;
	text-decoration: none;
	position: absolute;
	left: 60px;
	top: 35px;
}

.textinput {
	width: 550px;
	padding: 10px;
	border: 2px solid #66CCFF;
	font-size: 15px;
	outline: none;
}

.button1 {
	width: 80px;
	height: 42px;
	border: none;
	background-color: #66CCFF;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	outline: none;
	position: relative;
	right: 5px;
	top: 1px;
	text-align: center;
}

#body-1 {
	position: absolute;
	right: 171px;
	top: 36px;
}
hr{
	border-top: 2px solid #66CCFF;
}
#daohanglan{
position: relative;
background-color: #EEEEEE;
margin-bottom: 10px;
}
.daohanglan_1{
		    width: 1080px;
margin: 0 auto;
display: block;
}
.a3{
	    color: #888;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 50px;
}
.a3:hover{
	color: #66CCFF;
}
.fuhao{
	 color: #888;
}
#shopcar{
	    width: 1080px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 1px solid #66CCFF;
}
table{
	    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ebebeb;
    /*margin-bottom: 10px;*/
}
#toubu{
	    background-color: #eee;
}
tr{
	font-size: 12px;
}
.th1{
	    width: 130px;
	    text-align: left;
	        padding-left: 20px;
}
.th2{
	    width: 400px;
	    text-align: left;
}
.th3{
	    width: 100px;
    text-align: center;	
}
.th4{
	    width: 200px;
    text-align: center;
}
.th5{
	width: 100px;
    text-align: center;
}
.th6{
	    width: 110px;
    text-align: center;
}
	</style>
	<body>
		<div id="header">
			<p class="p1">涛宝商城,只有想不到,没有买不到!!!</p>
		</div>
		<div id="header_1">
		<div class="login">
			<div class="login_1">
				<span class="span"> <a href="Land.html"
					th:if="${session.currentUser==null}">登录</a> 
					<div class="mdui-container"
						style="display: inline-block; position: absolute; top: -5px"
						th:if="${session.currentUser!=null}">
						<div class="mdui-chip">
							<img class="mdui-chip-icon"
								th:src="@{${session?.currentUser?.headpic}}" /> <span
								class="mdui-chip-title"
								th:text="${session?.currentUser?.username}"></span> <span
								class="mdui-chip-title"><i
								class="mdui-icon material-icons"
								mdui-tooltip="{content: '安全退出'}" onclick="clickLogout()">&#xe5cd;</i></span>
						</div>
					</div> <a href="register.html" th:if="${session.currentUser==null}">注册</a>
				</span>
				<ul class="ul1">
					<li class="li1"><a href="Shopping_Cart.html" class="a1">购物车(<span
							class="number">0</span>)
					</a></li>
					<li class="li1"><a href="orderMsg.html" class="a1">我的订单</a></li>
					<li class="li1"><a href="userMsg.html" class="a1">我的涛宝</a></li>
					<li class="li1"><a href="taobaostoreMsg.html" class="a1">关于涛宝</a></li>
				</ul>
			</div>
		</div>
	</div>
		<div id="body">
			<a class="logo" href="index.html" style="position: absolute;left: 43%;">涛宝商城</a>
		</div>
		<hr />
		<div>
		 <center id="order-data">
		 <div class="mdui-progress">
  <div class="mdui-progress-indeterminate"></div>
</div>
			 <h1 style="color: #66CCFF;">您的订单已成功提交,订单号:<span id="orderOn" th:text="${param.orderNo}"></span>(如果太久没响应请刷新页面)</h1>
		 </center>
		</div>
		<script type="text/javascript">
		initOrder();
		function initOrder(){
			$.ajax({
				url:"order/pay.do",
				Type:"post",
				data:"orderId="+$("#orderOn").text(),
				dataType:"json",
				success:function(data){
					$("#order-data").append("<h1 style='color: red;'>使用支付宝扫描下面的二维码进行付款!</h1>");
					$("#order-data").append("<img id='QRcode' src='"+data.data.qrUrl+"' width='300px' height='300px' />");
					$(".mdui-progress").remove();
				}
			})
		}
		</script>
		<style type="text/css">
			#left li {
				margin-top: 10px;
			}

			#left li a {
				position: relative;
				left: 300px;
				color: #A9A9A9;
				font-size: 14px;
				text-decoration: none;
			}

			#left li a:hover {
				color: #66CCFF;
			}

			#rightPanel div {
				position: relative;
				left: 20px;
				margin-top: 15px;
				font-size: 14px;
				color: #666666;
			}
		</style>
	</body>
</html>
